package com.zjw.designPattern.factory.factorymethod;

public class FoodFactoryExample {

    public static void main(String[] args) {
//        Food riceFood = new RiceFood();
//        riceFood.eat();
//
//        Food noddleFood = new NoddleFood();
//        noddleFood.eat();

        FoodFactory foodFactory = new RiceFactory();
        Food riceFood = foodFactory.getFood();
        riceFood.eat();


    }
}
